﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserGroup_Edit.aspx.cs" Inherits="Admin.Sys.UserGroup.UserGroup_Edit" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/App_Themes/Default/Css/Style.css" rel="stylesheet" type="text/css" />
    <link href="/Components/EasyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="/Components/EasyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="/Jscript/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="/Components/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>

    <script src="/Jscript/AreaTreeView.js" type="text/javascript"></script>
    <title>用户组管理</title>
</head>
<body>
    <form id="form1" runat="server">
<!--Title -->
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
        <tr>
            <td>
            </td>
            <td align="right">
                <table width=200px>
                    <tr>
                        <td>
                <asp:ImageButton ID="imgBtnAdd" ImageUrl="/App_Themes/Default/images/btn_add.gif"
                    runat="server" OnClick="imgBtnAdd_Click" />
                        </td>
                        <td>
                            <asp:ImageButton ID="imgBtnDel" ImageUrl="/App_Themes/Default/images/btn_del.gif" runat="server" onclick="imgBtnDel_Click" OnClientClick="javascript:return confirm('您确定要删除该节点么？');" />
                        </td>
                        <td>
                            <asp:ImageButton ID="imgBtnUpdate" ImageUrl="~/App_Themes/Default/images/btn_update.gif" 
                                runat="server" onclick="imgBtnUpdate_Click" />
                        </td>
                        <td>
                             <asp:ImageButton ID="imgBtnSave" ImageUrl="~/App_Themes/Default/images/btn_save.gif" 
                                 runat="server" onclick="imgBtnSave_Click" Height="21px" />
                        </td>
                        <td>
                           <asp:ImageButton ID="imgBtnCancel" ImageUrl="~/App_Themes/Default/images/btn_cancel.gif" 
                                runat="server" onclick="imgBtnCancel_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8fc5dd">
        <tr>
            <td>
                <!--Search end-->
                <table height="350px" border="0" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="180">
                        <asp:TreeView ID="TreeView1" runat="server" 
                                onselectednodechanged="TreeView1_SelectedNodeChanged">
                        </asp:TreeView>
                        </td>
                        <td valign="top">
                        
                            <table cellpadding="0" cellspacing="0" width="100%" 
                                style="margin:0px; background-color: #99CCFF; top: 5px; right: 5px; bottom: 5px; left: 5px;" >
                                <tr>
                                    <td colspan="2" align="center" height="50">
                                        <strong>用户组基本信息</strong></td>
                                </tr>
                                <tr style="height: 25px">
                                    <td align="right">
                                        名称</td>
                                    <td>
                                        <input id="txtName" type="text" runat="server" /></td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        区域名称</td>
                                    <td>
                                        <input id="txtAreaName" type="text"   runat="server" /><input id="Button1" type="button" value="选择" onclick='javascript:ShowAreaDiv("区域选择",220,300);' />
                                        <asp:HiddenField ID="HiddenGroupId" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div id="DivAreaShow" icon="icon-save" style="overflow: auto; padding: 10px;">
                                        
        请选择<br />

        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:HiddenField ID="HiddenAreaId" runat="server" />
        <asp:HiddenField ID="HiddenFatherId" runat="server" />
        <asp:HiddenField ID="HiddenAreaName" runat="server" />
        <asp:TreeView ID="TreeView2" runat="server" 
            onselectednodechanged="TreeView2_SelectedNodeChanged">
        </asp:TreeView>
        </ContentTemplate>
        </asp:UpdatePanel>                 

        <br />
        <input id="btnAreaClear" type="button" value="置空" onclick="javascript:ClaerArea();" /><input id="btnAreaOk" 
            type="button" value="确定" onclick="javascript:SaveArea();" /><input id="btnCancel" type="button" value="取消" onclick="javascript:CancelArea();" /></div>
    </form>
</body>
</html>
